package cn.support.neo.mvp.model.qualifier;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.SOURCE;

/**
 * Name:自定义错误
 * Author: WK（wangkun@xjzhicheng.com)
 * Date: 2016-08-09
 * Describe: PLEASE TO FIXME...
 */

@Retention(SOURCE)
@IntDef({
        ResultCode.UNKNOWN,
        ResultCode.OK,
        ResultCode.UNEXPECTED,
        ResultCode.CONVERSION,
        ResultCode.NETWORK,
        ResultCode.HTTP,
        ResultCode.SSL_ERROR,
        ResultCode.DATA_NOT_EXIST,
        ResultCode.PARAM_LOST,
        ResultCode.IDENTITY_VERIFICATION_FAILURE,
        ResultCode.SERVER_ERROR,
        ResultCode.PARAM_NOT_CORRECT,
        ResultCode.PARAM_VALIDATE_FAILED,
        ResultCode.VERIFY_CODE_NOT_CORRECT,
        ResultCode.USER_ALREADY_EXISTS,
        ResultCode.LOGIN_LIMIT,
        ResultCode.OPERATE_FAILED,
        ResultCode.TOKEN_OVERDUE,
        ResultCode.NICK_NAME_ALREADY_EXISTS,
        ResultCode.REAL_VERIFY,
        ResultCode.DATA_HAS_BEEN_DELETED,
        ResultCode.PHONE_ALREADY_EXISTS,
        ResultCode.PARAM_REGULAR_MATCH_FAILED
})
public @interface ResultCode {

    int UNKNOWN = -1;
    int UNEXPECTED = 998;
    int CONVERSION = 999;
    int NETWORK = 1000;
    int HTTP = 1001;
    int SSL_ERROR=1002;
    int OK = 0;
    int DATA_NOT_EXIST = 100;
    int PARAM_LOST = 101;
    int IDENTITY_VERIFICATION_FAILURE = 102;
    int SERVER_ERROR = 103;
    int PARAM_NOT_CORRECT = 104;
    int PARAM_VALIDATE_FAILED = 105;
    int VERIFY_CODE_NOT_CORRECT = 106;
    int USER_ALREADY_EXISTS = 107;
    int LOGIN_LIMIT = 108;
    int OPERATE_FAILED = 109;
    int TOKEN_OVERDUE = 110;
    int NICK_NAME_ALREADY_EXISTS = 111;
    int REAL_VERIFY = 112;
    int DATA_HAS_BEEN_DELETED = 113;
    int PHONE_ALREADY_EXISTS = 114;
    int PARAM_REGULAR_MATCH_FAILED = 506;

}
